<template>
  <div>
    <el-select disabled v-bind="$attrs" placeholder="请选择" size="small" v-on="$listeners">
      <el-option
        v-for="item in optionsList"
        :key="item.value"
        :label="item.label"
        :value="item.value"
      />
    </el-select>
  </div>
</template>

<script>
import { getActivityPlotAPI } from '@/api/hujingbo/activity'
export default {
  name: 'SelectView',
  data() {
    return {
      optionsList: []
    }
  },
  created() {
    this.getActivityPlot()
  },
  methods: {
    // 获取小区数据
    async getActivityPlot() {
      const res = await getActivityPlotAPI()
      this.optionsList = res.data.map(item => {
        return { value: item.code, label: item.name }
      })
    }

  }
}
</script>

<style lang="scss">
.title{
  font-size: 14px;
  font-weight: 400;
}

</style>
